<?php
use \tpfcore\Core;
?>
<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<!-- Set render engine for 360 browser -->
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<!-- HTML5 shim for IE8 support of HTML5 elements -->
		<!--[if lt IE 9]>
			<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js">
			</script>
		<![endif]-->
		<link href="{$admin_assets_path}/css/theme.min.css" rel="stylesheet">
		<link href="{$admin_assets_path}/css/simplebootadmin.css" rel="stylesheet">
		<link href="{$admin_assets_path}/css/default.css" rel="stylesheet" />
		<link href="{$admin_assets_path}/css/font-awesome.min.css"
		rel="stylesheet" type="text/css">
		<style>
			.length_3{width: 180px;} form .input-order{margin-bottom: 0px;padding:3px;width:40px;}
			.table-actions{margin-top: 5px; margin-bottom: 5px;padding:0px;} .table-list{margin-bottom:
			0px;}
			.video_wrap{}
			.video_wrap .item{float: left; width: 240px; background-color: #F9F9F9; border:1px #ddd solid; padding: 10px; box-sizing: border-box; margin:0 20px 20px 0; height: 240px;}
			.video_wrap .item:hover{background-color: #F2F2F2; cursor: pointer;}
			.video_wrap .vtitle{font-size: 16px; margin: 10px 0;}
			.video_wrap .vcate{font-size: 12px; margin: 10px 0;}
			.video_wrap .vinfo{overflow: hidden;}
			.video_wrap .fleft{float: left;}
			.video_wrap .fright{float: right;}
			.video_wrap .fright a{display: inline-block; margin-left: 10px;}
		</style>
		<!--[if IE 7]>
			<link rel="stylesheet" href="{$admin_assets_path}/css/font-awesome-ie7.min.css">
		<![endif]-->
		<script type="text/javascript">
			//全局变量
			var GV = {
				WEB_ROOT:"",
				DIMAUB: "/",
				JS_ROOT: "/theme/backend/assets/js/",
				TOKEN: ""
			};
		</script>
		<!-- Le javascript==================================================-
		-> <!-- Placed at the end of the document so the pages load faster -->
		<script src="{$admin_assets_path}/js/jquery.js"></script>
		<script src="{$admin_assets_path}/js/wind.js"></script>
		<script src="{$admin_assets_path}/js/bootstrap.min.js"></script>
	</head>
	<body>
		<div class="wrap js-check-wrap">
			<ul class="nav nav-tabs">
				<li class="active"><a href="{:url('cms/PostsVideos/index')}">视频列表</a></li>
				<li><a href="{:url('cms/PostsVideos/add')}">添加视频</a></li>
			</ul>

			<div class="video_wrap">
				{empty name="list"}
				<div class="well form-search">没有数据</div>
				{else/}
				{volist name="list" id="vo"}
				<div class="item">
					{notempty name="vo.thumb"}
					<img src="{$vo.thumb}" alt="" width="218" style="max-height: 122px;">
					{else/}
					<img src="{$static_path}/images/default.jpg">
					{/notempty}
					<div class="msg">
						<div class="vtitle">{$vo.title}</div>
						<div class="vcate">{$vo.ctitle}</div>
						<div class="vinfo"><div class="fleft"><i class="fa fa-play-circle"></i> {$vo.view}</div><div class="fright"><a href="{:url('cms/PostsVideos/edit',['id'=>$vo['id']])}" title="编辑"><i class="fa fa-edit"></i></a><a href="{:url('cms/PostsVideos/del',['id'=>$vo['id']])}" data-msg="删除后不可恢复？" class="js-ajax-dialog-btn" title="删除"><i class="fa fa-trash-o"></i></a></div></div>
					</div>
				</div>
				{/volist}
				<div style="clear: both;"></div>
				{/empty}
			</div>
		</div>
		<div class="pagination text-center">
      		{$list->render()}
  		</div>
		<script src="{$admin_assets_path}/js/common.js"></script>
	</body>

</html>